#!/bin/bash
#cinder的目录
PWD=$(cd $(dirname $0);/bin/pwd)
CINDER_PATH=

if [ ! -d $CINDER_PATH ]; then
    echo "未找到cinder目录'$CINDER_PATH'，请确认是否安装Cinder."
    exit 1
fi
echo "正在安装驱动。"

driver_path=${CINDER_PATH}/volume/drivers/toyou
[ ! -d $driver_path ] && mkdir -p $driver_path
cd $PWD; \
cp tyds.py* $driver_path
echo "完成安装驱动，驱动目录 $driver_path"

